/**
 * 
 */
package com.rst.doc.domain;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

/**
 * @author JavaDeamon
 *
 */
@Entity
@Table(name="DOCUMENT_SUBCATEGORY_DETAILS")
public class DocumentSubCategoryDetailsDTO implements Serializable {

/**
	 * 
	 */
	private static final long serialVersionUID = 7401724640385879507L;

	private Integer docSubCategId;
	private String docSubCategName;
	private String docSubCategCode;
	private DocumentCategoryDetailsDTO docCategory;
	
	
	/**
	 * @return the docSubCategId
	 * primary key
	 * contains autogenerated id
	 * length is 10
	 */
	@Id
	@GeneratedValue(strategy=GenerationType.AUTO)
	@Column(name="DOC_SUB_CATEG_ID", length=10)
	public Integer getDocSubCategId() {
		return docSubCategId;
	}
	
	/**
	 * @return the docSubCategName
	 * contains sub category name
	 * cannot be null
	 * length is 60
	 */
	@Column(name="DOC_SUB_CATEG_NAME", nullable=false, length=60)
	public String getDocSubCategName() {
		return docSubCategName;
	}
	/**
	 * @return the docSubCategCode
	 * contains sub category code
	 * cannot be null
	 * length is 20
	 */
	@Column(name="DOC_SUB_CATEG_CODE", nullable=false, length=20)
	public String getDocSubCategCode() {
		return docSubCategCode;
	}
	/**
	 * @return the docCategory
	 * contains doc category id
	 * mapping with document category details
	 */
	@ManyToOne(targetEntity=DocumentCategoryDetailsDTO.class)
	@JoinColumn(name="DOC_CATEGORY_ID", nullable=false)
	public DocumentCategoryDetailsDTO getDocCategory() {
		return docCategory;
	}
	/**
	 * @param docSubCategId the docSubCategId to set
	 */
	public void setDocSubCategId(Integer docSubCategId) {
		this.docSubCategId = docSubCategId;
	}
	/**
	 * @param docSubCategName the docSubCategName to set
	 */
	public void setDocSubCategName(String docSubCategName) {
		this.docSubCategName = docSubCategName;
	}
	/**
	 * @param docSubCategCode the docSubCategCode to set
	 */
	public void setDocSubCategCode(String docSubCategCode) {
		this.docSubCategCode = docSubCategCode;
	}
	/**
	 * @param docCategory the docCategory to set
	 */
	public void setDocCategory(DocumentCategoryDetailsDTO docCategory) {
		this.docCategory = docCategory;
	}
}
